require "common/Define"
require "FairyGUI"
require "FGUI/CoolDownMainCtrl"

CoolDown = {};

function CoolDown.Main()
	-- body
	Application.targetFrameRate = 60;

	-- ctrl
	CoolDownMainCtrl:Awake();

	-- UIPanel的生命周期将和yourGameObject保持一致。再次提醒，注意yourGameObject的layer。
	--[[
	local go = GameObject();
	go.name = "MyPanel";
	go.layer = CS.UnityEngine.LayerMask:NameToLayer("UI");
	local panel = go:AddComponent(typeof(UIPanel));
	panel.packageName = "UI/Cooldown";
	panel.componentName = "Main";
	
	-- 设置renderMode的方式
	panel.container.renderMode = CS.UnityEngine.RenderMode.WorldSpace;
	
	-- 设置fairyBatching
	panel.container.fairyBatching = true;
	
	-- 设置sortingOrder的方式
	panel:SetSortingOrder(1, true);
	
	-- 设置hitTestMode的方式
	-- panel:SetHitTestMode(CS.fairyGUI.HitTestMode.Default);
	panel:CreateUI();
	]]

end